from flask import Flask

app = Flask(__name__)


@app.route("/")
def index():
    return "<p>我是第一个Flask应用</p>"


@app.route("/hello/")
@app.route("/hello/<name>")
def hello(name=None):
    return "Hello %s" % name


if __name__ == "__main__":
    app.run()
